package com.ymatou.iapi.godmch.testcase;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.json.JSONException;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.godmch.parameter.applySupplierBean;
import com.ymatou.iapi.godmch.parameter.createIndepMchBean;
import com.ymatou.iapi.godmch.parameter.reApplySupplierBean;
import com.ymatou.iapi.godmch.service.applySupplierCall;
import com.ymatou.iapi.godmch.service.createIndepMchCall;
import com.ymatou.iapi.godmch.service.reApplySupplierCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
import com.ymttest.business.service.shenqi.GodmchManageCallService;
import com.ymttest.database.model.agent_type;
import com.ymttest.database.model.mch_info;
import com.ymttest.database.model.mch_relation;
import com.ymttest.database.model.godmch.supplierLog;
import com.ymttest.database.model.godmch.supplierLogExample;
import com.ymttest.database.sqlwapper.godmch.agent_typeWapper;
import com.ymttest.database.sqlwapper.godmch.mch_infoWapper;
import com.ymttest.database.sqlwapper.godmch.mch_relationWapper;
import com.ymttest.database.sqlwapper.godmch.supplierLogWapper;
/**
*重新申请供货商
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_reApplySupplier{
	private static reApplySupplierBean bean;
	private static reApplySupplierCall call;
	private  mch_infoWapper mchInfoWapper = new mch_infoWapper();
	private  mch_relationWapper relationWapper=new mch_relationWapper();
	private  agent_typeWapper agentTypeWapper=new agent_typeWapper();
	
	createIndepMchBean createIndepMchBean=new createIndepMchBean();
	createIndepMchCall createIndepMchCall=new createIndepMchCall();
	
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("重新申请供货商");
	}

	@Before
	public void caseUp() {
		bean=new reApplySupplierBean();
		call=new reApplySupplierCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(call.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	
	/**
	 * 校验独立商户 和 供货商
	 * @param mchId
	 * @param supplierId
	 * @throws InterruptedException
	 */
	private void check_mchInfo(Integer mchId,Integer supplierId) throws InterruptedException{
		Logger.comment("1:验证数据库mch_info表");
		//独立商户
		Map<String, Object> map = new HashMap();
		map.put("mchId", mchId);
		mch_info  mchinfo=mchInfoWapper.selectby(map).get(0);
		//供货商
		Map<String, Object> supplier_map = new HashMap();
		supplier_map.put("mchId", supplierId);
		mch_info  supplier_mchinfo=mchInfoWapper.selectby(supplier_map).get(0);
		Logger.verifyEquals(0, mchinfo.getAgent(), "验证独立商户的Agent");
		Logger.verifyEquals(1, mchinfo.getChannels(), "验证独立商户的channels");
		Logger.verifyEquals(createIndepMchBean.getMchShareType(), mchinfo.getMchShareType(), "验证独立商户的MchShareType");
		Logger.verifyEquals(0, mchinfo.getState(), "验证独立商户的State");
		Logger.verifyEquals(0, supplier_mchinfo.getAgent(), "验证供货商的Agent");
		Logger.verifyEquals(1, supplier_mchinfo.getChannels(), "验证供货商的channels");
		Logger.verifyEquals(createIndepMchBean.getMchShareType(), supplier_mchinfo.getMchShareType(), "验证证供货商的MchShareType");
		Logger.verifyEquals(-3, supplier_mchinfo.getState(), "验证证供货商的State=-2待审核");
	}
	/**
	 * 独立商户与供货商关系表
	 * @param mchId
	 * @param supplierId
	 * @throws InterruptedException
	 */
	private void check_relation(Integer mchId,Integer supplierId) throws InterruptedException
	{
		//独立商户与供货商关系表
		Logger.comment("2:验证数据库mch_relation表");
		//申请供货商关系时，独立商户是代理商，供货商是渠道商身份
		mch_relation relation=relationWapper.selectByPrimaryKey(mchId, supplierId).get(0);
		Logger.verifyEquals(-3, relation.getAgentType(), "验证AgentType");
		Logger.verifyEquals(-3, relation.getAgentModel(), "验证AgentModel");
		Logger.verifyEquals(-2, relation.getState(), "验证state");
	}
	/**
	 * 校验供货商日志
	 * @param mchId
	 * @param supplierId
	 * @param supplierLogNum
	 * @throws InterruptedException
	 */
	private void  check_supplierLog(Integer mchId,Integer supplierId,Integer supplierLogNum) throws InterruptedException {
		//供货商日志
		Logger.comment("3:验证数据库supplierLog表");
		supplierLogExample supplierLogExample=new supplierLogExample();
		supplierLogWapper supplierLogWapper=new supplierLogWapper();
		supplierLogExample.createCriteria().andMchIdEqualTo(mchId).andSupplierIdEqualTo(supplierId).andLogTypeEqualTo(1);
		List<supplierLog> supplierLogs=  supplierLogWapper.selectByExample(supplierLogExample);
		Logger.verifyEquals(supplierLogNum, supplierLogs.size(), "验证supplierLog条数");
	}
	/**
	 * 删除后重新申请的验证点（删除后重新申请时mch_info数据不变，关系表status=-2）
	 * supplierLogNum日志条数
	 * beforeStatus 删除前的状态 1:同意 2:删除 3：拒绝
	 * @throws InterruptedException
	 */
	private void check_verifyV2(Integer supplierLogNum,Integer beforeStatus) throws InterruptedException{
		Integer agentType=0;
		Integer agentModel=0;
		
		Logger.comment("1:验证数据库mch_info表");
		//独立商户
		Map<String, Object> map = new HashMap();
		map.put("mchId", bean.getMchId());
		mch_info  mchinfo=mchInfoWapper.selectby(map).get(0);
		//供货商
		Map<String, Object> supplier_map = new HashMap();
		supplier_map.put("mchId", bean.getSupplierId());
		mch_info  supplier_mchinfo=mchInfoWapper.selectby(supplier_map).get(0);
		Logger.verifyEquals(1, mchinfo.getAgent(), "验证独立商户的Agent");
		Logger.verifyEquals(1, mchinfo.getChannels(), "验证独立商户的channels");
		Logger.verifyEquals(createIndepMchBean.getMchShareType(), mchinfo.getMchShareType(), "验证独立商户的MchShareType");
		Logger.verifyEquals(0, mchinfo.getState(), "验证独立商户的State");
		Logger.verifyEquals(0, supplier_mchinfo.getAgent(), "验证供货商的Agent");
		Logger.verifyEquals(1, supplier_mchinfo.getChannels(), "验证供货商的channels");
		Logger.verifyEquals(createIndepMchBean.getMchShareType(), supplier_mchinfo.getMchShareType(), "验证证供货商的MchShareType");
		Logger.verifyEquals(0, supplier_mchinfo.getState(), "验证证供货商的State=-2待审核");
		
		//独立商户与供货商关系表
		Logger.comment("2:验证数据库mch_relation表");
		//申请供货商关系时，独立商户是代理商，供货商是渠道商身份
		mch_relation relation=relationWapper.selectByPrimaryKey(bean.getMchId(), bean.getSupplierId()).get(0);
		
		//查询渠道创建的代理类型
		Map<String, Object> map2 = new HashMap();
		map2.put("mchId", bean.getSupplierId());
		agent_type  type=agentTypeWapper.selectby(map2).get(0);
		//
		if(beforeStatus==1 || beforeStatus==2){
			agentType=type.getAgentType();
			agentModel=1;
		}
//		else if(beforeStatus==2){
//			agentType=-2;
//			agentModel=-2;
//		}
		else if(beforeStatus==3){
			agentType=-3;
			agentModel=-3;
		}
		
		Logger.verifyEquals(agentType, relation.getAgentType(), "验证AgentType");
	    Logger.verifyEquals(agentModel, relation.getAgentModel(), "验证AgentModel");
		Logger.verifyEquals(-2, relation.getState(), "验证state");
		check_supplierLog(bean.getMchId(),bean.getSupplierId(),supplierLogNum);
	}
	/**
	 * 校验
	 * @param mchId
	 * @throws JSONException
	 * @throws InterruptedException
	 */
	private void check_verify(Integer supplierLogNum) throws JSONException, InterruptedException
	{
		Logger.verifyEquals("200", call.getStatusCode1(), "验证status");
		Logger.verifyEquals(true, call.getMessage().contains("请求成功"), "验证Message");
		check_mchInfo(bean.getMchId(), bean.getSupplierId());
		check_relation(bean.getMchId(), bean.getSupplierId()) ;
		check_supplierLog(bean.getMchId(),bean.getSupplierId(),supplierLogNum);
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_001() {
		Logger.start(true,"正例-重新申请供货商-独立商户id是无代理独立商户-拒绝后重新申请-成功");
		try {
			//创建独立商户1
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();	
			
			check_verify(2);
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_001_1() {
		Logger.start(true,"正例-重新申请供货商-独立商户id是无代理独立商户-删除后重新申请-成功");
		try {
			//创建独立商户1
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //同意
            GodmchManageCallService.approveSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            //删除
            GodmchManageCallService.deleteSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();	
			
			check_verifyV2(2,2);
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_002() {
		Logger.start(true,"正例-重新申请供货商-独立商户id是有代理独立商户-成功");
		try {
			//独立商户
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //代理
            GodmchManageCallService.applyAndapproveAgent(createIndepMchCall.getmchId());
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            bean.setMchId(createIndepMchCall.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();			
			
			check_verify(2);
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_003() {
		Logger.start(true,"正例-重新申请供货商-独立商户id是有代理独立商户-货商状态是审核通过-失败");
		try {
			//独立商户
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //代理
            GodmchManageCallService.applyAndapproveAgent(createIndepMchCall.getmchId());
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //通过
            GodmchManageCallService.approveSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            bean.setMchId(createIndepMchCall.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();		
			
			Logger.verifyEquals("5000", call.getStatusCode1(), "验证status");
			Logger.verifyEquals(true, call.getMessage().contains("供货商状态不正确，禁止重新申请"), "验证Message");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_004() {
		Logger.start(true,"正例-重新申请供货商-独立商户id是有代理独立商户-供货商状态是删除-成功");
		try {
			//独立商户
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //代理
            GodmchManageCallService.applyAndapproveAgent(createIndepMchCall.getmchId());
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //通过
            GodmchManageCallService.approveSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            //删除
            GodmchManageCallService.deleteSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();			
			
			check_verifyV2(2,2);
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_004_1() {
		Logger.start(true,"正例-重新申请供货商-独立商户id是有代理独立商户-删除后重新申请 再被拒绝-成功");
		try {
			//独立商户
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //代理
            GodmchManageCallService.applyAndapproveAgent(createIndepMchCall.getmchId());
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //通过
            GodmchManageCallService.approveSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            //删除
            GodmchManageCallService.deleteSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            //重新申请
            GodmchManageCallService.ReApplySupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();			
			
			check_verifyV2(3,3);
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_005() {
		Logger.start(true,"正例-重新申请供货商-独立商户id是有代理独立商户-供货商状态是待审核-失败");
		try {
			//独立商户
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //代理
            GodmchManageCallService.applyAndapproveAgent(createIndepMchCall.getmchId());
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            
            bean.setMchId(createIndepMchCall.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();			
			
			Logger.verifyEquals("5000", call.getStatusCode1(), "验证status");
			Logger.verifyEquals(true, call.getMessage().contains("供货商状态不正确，禁止重新申请"), "验证Message");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_006() {
		Logger.start(true,"正例-重新申请供货商-独立商户与供货商不存在关系-失败");
		try {
			//创建独立商户1
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
			//创建独立商户2
			createIndepMchBean createIndepMchBean2=GodmchManageCallService.InitCreateIndepMchBean();
            createIndepMchCall createIndepMchCall2=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean2);
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall2.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();		
			Logger.verifyEquals("5000", call.getStatusCode1(), "验证status");
			Logger.verifyEquals(true, call.getMessage().contains("供货商不存在"), "验证Message");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_007() {
		Logger.start(true,"正例-重新申请供货商--mchId不存在-失败");
		try {
			//创建独立商户1
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall.getmchId()+9999);
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();				
			Logger.verifyEquals("5000", call.getStatusCode1(), "验证status");
			Logger.verifyEquals(true, call.getMessage().contains("供货商不存在"), "验证Message");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_008() {
		Logger.start(true,"正例-重新申请供货商-supplierId不存在-失败");
		try {
			//创建独立商户1
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
			//创建独立商户2
			createIndepMchBean createIndepMchBean2=GodmchManageCallService.InitCreateIndepMchBean();
            createIndepMchCall createIndepMchCall2=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean2);
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall2.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId()+99999);
			call.setData(bean);
			call.callService();				
			Logger.verifyEquals("5000", call.getStatusCode1(), "验证status");
			Logger.verifyEquals(true, call.getMessage().contains("供货商不存在"), "验证Message");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_009() {
		Logger.start(true,"正例-重新申请供货商-mchId为空-失败");
		try {
			//创建独立商户1
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
			//创建独立商户2
			createIndepMchBean createIndepMchBean2=GodmchManageCallService.InitCreateIndepMchBean();
            createIndepMchCall createIndepMchCall2=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean2);
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
           // bean.setMchId(createIndepMchCall2.getmchId());
            bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();		
			Logger.verifyEquals("4001", call.getStatusCode1(), "验证status");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_reApplySupplier_0010() {
		Logger.start(true,"正例-重新申请供货商-supplierId为空-失败");
		try {
			//创建独立商户1
			 createIndepMchBean=GodmchManageCallService.InitCreateIndepMchBean();
             createIndepMchCall=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean);
			//创建独立商户2
			createIndepMchBean createIndepMchBean2=GodmchManageCallService.InitCreateIndepMchBean();
            createIndepMchCall createIndepMchCall2=GodmchManageCallService.CreateIndepMchCall(createIndepMchBean2);
            //申请供货商
            applySupplierBean applySupplierBean=GodmchManageCallService.initApplySupplier(createIndepMchCall.getmchId());
            applySupplierCall applySupplierCall=GodmchManageCallService.applySupplierCall(applySupplierBean);
            //拒绝
            GodmchManageCallService.rejectSupplier(createIndepMchCall.getmchId(), applySupplierCall.getSupplierId());
            
            bean.setMchId(createIndepMchCall2.getmchId());
            //bean.setSupplierId( applySupplierCall.getSupplierId());
			call.setData(bean);
			call.callService();		
			Logger.verifyEquals("4001", call.getStatusCode1(), "验证status");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}